package cate.common.table.herodirectbuy.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class HeroDirectBuyBaseRow extends ERow {
    @NoteField("配置ID")
    public int configTid;

    @NoteField("刷新次数上限")
    public int limit;

    @NoteField("免费刷次数增加时间")
    public long refreshAdd;

    @NoteField("消耗元宝增加刷新次数")
    public int consumeNum;

    @NoteField("消耗人民币增加刷新次数(元)")
    public int payNum;

    @NoteField("刷新道具")
    public String item;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.configTid = xrw.getInteger("配置ID", 0);
        this.limit = xrw.getInteger("刷新次数上限", 0);
        this.refreshAdd = xrw.getLong("免费刷次数增加时间", 0L);
        this.consumeNum = xrw.getInteger("消耗元宝增加刷新次数", 0);
        this.payNum = xrw.getInteger("消耗人民币增加刷新次数", 0);
        this.item = xrw.getString("刷新道具");
    }
}
